<script setup lang="ts">
import { RouterLink, RouterView } from 'vue-router'
</script>

<template>
  <header>
      <nav>
      <ul>
        <li><RouterLink to="/">Home</RouterLink></li>
        <li><RouterLink to="/login">About</RouterLink></li>
        <li><RouterLink to="/login1">湖北省</RouterLink></li>
        <li><RouterLink to="/quanguo">全国</RouterLink></li>
      </ul>
    </nav>
  </header>

  <RouterView />
</template>

<style lang="scss" scoped>
 
 
nav {
  width: 100%;
  font-size: 1.1rem;
  text-align: center;
  line-height: 40px;
  height: 40px;
  background: linear-gradient(to right, #FF8008, #FFC837, #A8FF33);
  ul {
    list-style: none;
    li{
      float: left;
    }
  }
}

nav a.router-link-exact-active {
  color: var(--color-text);
}

nav a.router-link-exact-active:hover {
  background-color: transparent;
}

nav a {
  display: inline-block;
  padding: 0 1rem;
  border-left: 1px solid var(--color-border);
}

nav a:first-of-type {
  border: 0;
}

 
</style>
